<?php
/**
 * Created by PhpStorm.
 * User: Raymond
 * Date: 2021-06-25
 * Time: 09:18
 */
$str = "Hello fri3nd, you're
       looking          good today!";

print_r(str_word_count($str, 1));
print_r(str_word_count($str, 2));
print_r(str_word_count($str, 1, 'àáãç3'));

echo str_word_count($str),"\n";
echo str_word_count($str,0,'3'),"\n";